//
//  FirstForgetViewController.m
//  AllFamily
//
//  Created by chirui on 2018/6/13.
//  Copyright © 2018年 Shui. All rights reserved.
//

#import "FirstForgetViewController.h"
#import "ForgetPasswordVC.h"

@interface FirstForgetViewController ()

@property (weak, nonatomic) IBOutlet UITextField *phoneText;
@end

@implementation FirstForgetViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    TitleView(@"忘记密码");
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithIcon:@"icon_nav_renter" target:self action:@selector(backBtnClick)];
}

-(void)backBtnClick{
    
    [self.navigationController popViewControllerAnimated:YES];
}

- (IBAction)sureBtn:(id)sender {
    
    if (_phoneText.text.length!=11) {
        
        SHuiMBhudTextTimeStr(@"输入手机号必须是11位");
        
        return;
    }
    ForgetPasswordVC * forget = [[ForgetPasswordVC alloc]init];
    forget.phoneStr = _phoneText.text;
    [self.navigationController pushViewController:forget animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
   
}



/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
